package com.leyou.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.order.data.dto.CartGoodsDto;
import com.leyou.order.data.entity.OrderShoppingCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xhh
 * @since 2022-07-05
 */
public interface OrderShoppingCartMapper extends BaseMapper<OrderShoppingCart> {
    List<CartGoodsDto> getListByUserId(@Param("id")Integer userId);
    List<CartGoodsDto> getListByCartId(@Param("id")Integer userId);
    boolean realDelete(Integer cartId);
}
